package com.xjh.basestudy.designmode.behaviorMode.behaviorMode4_Strategy.example_computer;

/**
 * @Author XuJianHua
 * @Date 2022/10/4 16:17
 * @Description

 */
public class Computer {

    private USB usb;//主机上的USB接口

    public void setUSB(USB usb) {
        this.usb = usb;//插入USB设备
    }

    public void compute(){
        usb.read();
    }

}